#include "shell_port.h"
#include "Arduino.h"


short port_ShellWrite(char* data, unsigned short len) {


	return Serial.write((uint8_t *)data, len);
}

short port_ShellRead(char* data, unsigned short len) {
    int recLen=  Serial.available();
    if(recLen>3){
        uint32_t recRealLen= Serial.readBytes(data,recLen);
        return recRealLen;
    }
	return 0;
}